package dao;

import org.apache.ibatis.annotations.Param;
import po.DyhBasedb;
import po.DyhBasedbExample;

import java.util.List;

public interface DyhBasedbMapper {
    int countByExample(DyhBasedbExample example);

    int deleteByExample(DyhBasedbExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(DyhBasedb record);

    int insertSelective(DyhBasedb record);

    List<DyhBasedb> selectByExample(DyhBasedbExample example);

    DyhBasedb selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") DyhBasedb record, @Param("example") DyhBasedbExample example);

    int updateByExample(@Param("record") DyhBasedb record, @Param("example") DyhBasedbExample example);

    int updateByPrimaryKeySelective(DyhBasedb record);

    int updateByPrimaryKey(DyhBasedb record);

    List<DyhBasedb> getResportTopNByTypeId(@Param("typeId") int typeId, @Param("topN") int topN, @Param("desc") boolean desc);

    List<DyhBasedb> getPageList(@Param("pageNum") int pageNum, @Param("pageSize") int pageSize,@Param("typeId") int typeId);
}